package sv.gob.mh.dgii.dao.rc;

import java.sql.SQLException;
import org.springframework.stereotype.Repository;
import sv.gob.mh.dgii.dao.hibernate.HibernateDaoNoCrudImpl;

@Repository
public class RcAutorizacionLogDaoImpl extends HibernateDaoNoCrudImpl implements RcAutorizacionLogDao {
		
	public void autorizarLog(String userTram, String userAuto, String nit,
			String folio, String modulo) throws SQLException  {		
		Object[] params = new Object[]{userTram, userAuto, nit, folio ,modulo};
		String function = "call pkg_siit_logs.pr_ins_autorizacion_log(?,?,?,?,?)";
			
		try {
			executeProcedure(function, params);
		} catch (Exception e) {			
			throw new RuntimeException(e);
		}			
	}

}